package com.xiaocikuai.smallchunks.entity.Transaction;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author1
 * @since 2024-07-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("yshop_pay")
public class Pay implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 支付id
     */
    @TableId(value = "pay_id", type = IdType.AUTO)
    private Integer payId;

    /**
     * 用户id
     */
    @TableField("uid")
    private Integer uid;

    /**
     * 订单id
     */
    @TableField("oid")
    private Integer oid;

    /**
     * 账单id
     */
    @TableField("bid")
    private Integer bid;

    /**
     * 收货信息id
     */
    @TableField("aid")
    private Integer aid;

    @TableField("count")
    private Integer count;

    /**
     * 定价
     */
    @TableField("total_price")
    private Integer totalPrice;

    /**
     * 优惠券id
     */
    @TableField("promotional_id")
    private Integer promotionalId;

    /**
     * 优惠金额
     */
    @TableField("promotional_price")
    private Integer promotionalPrice;

    /**
     * 实际支付金额
     */
    @TableField("pay_price")
    private Integer payPrice;

    /**
     * 支付状态
     */
    @TableField("paid")
    private Integer paid;

    /**
     * 支付时间
     */
    @TableField("pay_time")
    private LocalDateTime payTime;

    /**
     * 支付方式
     */
    @TableField("pay_type")
    private Integer payType;

    /**
     * 支付过程创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 支付过程更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;

    /**
     * 退款状态
     */
    @TableField("refund_status")
    private Integer refundStatus;

    /**
     * 退款金额
     */
    @TableField("refund_price")
    private Float refundPrice;

    /**
     * 备注
     */
    @TableField("mark")
    private String mark;

    private String spreadCode;
    private Integer spreadId;


}
